<?php
	include 'connection.php';
	include 'header.php';
	
	$register_username  = $_GET["username"];
	$register_password  = $_GET["password"];
	$register_name      = $_GET["name"];
	$register_email     = $_GET["email"];
	$register_city      = $_GET["city"];
	
	$query = "	INSERT INTO 
					`user`(`username`, `name`, `email`, `password`, `city`) 
				VALUES 
					('$register_username','$register_name','$register_email','$register_password','$register_city')";

	if(mysql_query($query, $link)) {
		echo json_encode(array('status'=>'success'));
	} else {
		echo json_encode(array('status'=>'failed'));
	}

?>